package com.danhuang.cloud.danhuangcore.utils;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;

import java.util.Date;

public class CreateIdUtil {

    public static String createId(String initial){

        StringBuffer id = new StringBuffer();
        id.append(initial);
        id.append(RandomUtil.randomInt(100,1000));
        id.append(DateUtil.format(new Date(), "SSS"));
        id.append(RandomUtil.randomInt(100,1000));

        return String.valueOf(id);
    }
}
